/*
 * An XML document type.
 * Localname: qudex
 * Namespace: http://www.data-archive.ac.uk/dext/schema/draft
 * Java type: uk.da.dext.QudexDocument
 *
 * Automatically generated - do not modify.
 */
package uk.da.dext.impl;
/**
 * A document containing one qudex(@http://www.data-archive.ac.uk/dext/schema/draft) element.
 *
 * This is a complex type.
 */
public class QudexDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements uk.da.dext.QudexDocument
{
    private static final long serialVersionUID = 1L;
    
    public QudexDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName QUDEX$0 = 
        new javax.xml.namespace.QName("http://www.data-archive.ac.uk/dext/schema/draft", "qudex");
    
    
    /**
     * Gets the "qudex" element
     */
    public uk.da.dext.QudexType getQudex()
    {
        synchronized (monitor())
        {
            check_orphaned();
            uk.da.dext.QudexType target = null;
            target = (uk.da.dext.QudexType)get_store().find_element_user(QUDEX$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "qudex" element
     */
    public void setQudex(uk.da.dext.QudexType qudex)
    {
        synchronized (monitor())
        {
            check_orphaned();
            uk.da.dext.QudexType target = null;
            target = (uk.da.dext.QudexType)get_store().find_element_user(QUDEX$0, 0);
            if (target == null)
            {
                target = (uk.da.dext.QudexType)get_store().add_element_user(QUDEX$0);
            }
            target.set(qudex);
        }
    }
    
    /**
     * Appends and returns a new empty "qudex" element
     */
    public uk.da.dext.QudexType addNewQudex()
    {
        synchronized (monitor())
        {
            check_orphaned();
            uk.da.dext.QudexType target = null;
            target = (uk.da.dext.QudexType)get_store().add_element_user(QUDEX$0);
            return target;
        }
    }
}
